﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
    function demo()
    {
       this.publicProp='publicProp';
       this.publicFunc=function()
       {
           alert('publicFunc')
       }
       function privateFunc(str)
       {
           alert(str);
       }
       var privateProp='privateProp';
       this.handlerForPrivate=function(){
           privateFunc(privateProp);
       }
    }
    demo.staticProp='staticProp';
    demo.staticFunc=function(){
       alert(demo.staticProp);
    }
    demo.prototype.proProp='proProp';
    demo.prototype.proFunc=function(){
        alert('proFunc');
    }
    
    demo.staticFunc();
    dm=new demo();
    dm.publicFunc();
    dm.handlerForPrivate();
    dm.proFunc();
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    
    <a href="contextT.aspx">ref</a>
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Button" />
        
        <div>
        
        </div>
    </div>
    </form>
</body>
</html>
